﻿using Entitas;
using UnityEngine.Experimental.PlayerLoop;

namespace HelloWorld
{
    /// <summary>
    /// 初始化 打印日志
    /// </summary>
    public class InitLogSystem : IInitializeSystem
    {

        private readonly GameContext _context;

        public InitLogSystem(Contexts contexts)
        {
            _context = contexts.game;
        }

        public void Initialize()
        {
            _context.CreateEntity().AddHelloWorldLog("This is Hello World!!!");
        }
    }
}

